[ACADEMY] Sharded Voting Example#664
Conversation
| 1. 📥 Clone the repository: | ||
|
|
||
| ```sh | ||
| git clone https://github.com/NilFoundation/nil-voting-protocol.git |
There was a problem hiding this comment.
| git clone https://github.com/NilFoundation/nil-voting-protocol.git | |
| git clone https://github.com/NilFoundation/nil |
| 2. 📂 Navigate to the directory and install dependencies: | ||
|
|
||
| ```sh | ||
| cd nil-voting-protocol |
There was a problem hiding this comment.
| cd nil-voting-protocol | |
| cd academy/sharded-voting-protocol |
| return { startTime, endTime }; | ||
| } | ||
|
|
||
| task("e2e", "🔁 End-to-end test for sharded voting").setAction(async () => { |
There was a problem hiding this comment.
| task("e2e", "🔁 End-to-end test for sharded voting").setAction(async () => { | |
| task("run-voting-protocol", "🔁 End-to-end test for sharded voting").setAction(async () => { |
|
@idea404 Done with the edits |
gitshreevatsa
left a comment
There was a problem hiding this comment.
Thank you for opening the PR. Things work fine! Just one small change as mentioned.
| @@ -0,0 +1,25 @@ | |||
| { | |||
| "name": "sharded-voting-protocol", | |||
| "description": "This is an example repository to showcase how a lending protocol can be built on top of =nil;", | |||
There was a problem hiding this comment.
Change this to voting protocol currently it is lending protocol.
4d6d5c8 to
bbf9ab5
Compare
bbf9ab5 to
107773e
Compare
|
@JoE11-y |
|
@gitshreevatsa no i didn't make those changes. Maybe it's due to the rebasing. I'll clean it up now. |
|
Ready to go now @gitshreevatsa |
|
Or should i make the pr again, for a cleaner history? |
|
It is alright, don't need to open another PR. For cleaner history you can try squashing commits instead. |
f1745a3 to
24a7538
Compare
|
@JoE11-y Thanks a lot for your contribution! 🙌 |
Closes #607
📦 Description
This PR introduces the smart contract implementation for a Sharded Voting Protocol built on the =nil; blockchain. The system is designed to efficiently handle large-scale voting by distributing vote storage and logic across multiple shards.
🔧 Key Components
VoteManager.solVoteShardcontracts deterministically usingNil.asyncDeployvoteFromManagerNil.sendRequestVoteShard.soltallyVotes()function that returns vote totals for aggregation✅ Completed
VoteManagerandVoteShardNil.sol